package com.woniuxy02;

import java.sql.Connection;
import java.sql.DriverManager;
import java.util.Scanner;

/**
 * @author 作者
 * @create 2025-08-26 14:14
 */
public class Test04 {
    public static void main(String[] args) {
        Scanner sc =new Scanner(System.in);
        System.out.println("输入学生姓名");
        String name=sc.next();
        System.out.println("输入java成绩");
        int java=sc.nextInt();
        System.out.println("输入html成绩");
        int html=sc.nextInt();
        System.out.println("输入sql成绩");
        int sql=sc.nextInt();
        int sum=java+html+sql;
        int avg=sum/3;
        System.out.println("学生："+name+",成绩：java="+java+",sql="+sql+",html="+html);
        System.out.println("总分："+sum);
        System.out.println("平均分:"+avg);

    }
}
